<template>
  <div class="hi">
   <h1>{{ msg }}</h1>
   {{ $route.params.paramsId }}-{{ $route.params.paramsTitle }}
  </div>
</template>

<script>
export default {
  name: 'Hi',
  data() {
    return {
      msg: 'params page'
    }
  },
  beforeRouterEnter(to, from, next) {
    console.log('进入params路由');
    next();
  },
  beforeRouteLeave (to, from, next) {
    console.log('离开params路由');
    next();
  }
}
</script>

<style>

</style>
